package cn.exrick.xboot.modules.base.enums;

import lombok.Data;
import lombok.Getter;

@Getter
public enum PaymentStatusEnum {
    UNPAID("unpaid", "未付款"),
    NO_PAYMENT_NEEDED("noPaymentNeeded", "无需付款"),
    PAID("paid", "已付款");

    private final String value; // 代码，采用驼峰命名法
    private final String description; // 描述

    // 构造函数
    PaymentStatusEnum(String value, String description) {
        this.value = value;
        this.description = description;
    }

    // 获取 code
    public String getValue() {
        return value;
    }

    // 获取 description
    public String getDescription() {
        return description;
    }

    // 重写 toString 方法，方便打印
    @Override
    public String toString() {
        return value + " (" + description + ")";
    }
}